﻿using System;
using System.Collections.Generic;
using System.Text;
using WeatherSystem.Application.MsgHandler;
using WeatherSystem.Data.Response;

namespace WeatherSystem.Application.ContentAdapter.EventAdapter
{
    class SubscribeAdapter : EventAdapterBase
    {
        public override string EventName => "subscribe";

        public override ResponseMessageBase Handle(Message message)
        {
            var msg = message as EventMessage;
            var hello = @"欢迎关注武汉理工大学升升科技。请点击下方""绑定设备""菜单，扫描设备上的二维码进行绑定。";
            return new TextMsg(msg.FromUserName, msg.ToUserName, Data.Convert.ToTimeStamp(DateTime.Now), hello);
        }
    }
}
